package com.tianhao.luo.controller;

import com.tianhao.luo.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author tianhao.luo
 * @date 2020/3/10 15:40
 */
@RestController
@RequestMapping("/weChat")
public class OfficialController {

    @Autowired
    private MessageService service;

    @PostMapping(value = "/message")
    public String messageMonitor(HttpServletRequest request) {
        return service.message(request);
    }
}
